package com.mdd.admin.service;

import com.mdd.admin.validate.commons.PageValidate;
import com.mdd.admin.validate.LogActionCreateValidate;
import com.mdd.admin.validate.LogActionUpdateValidate;
import com.mdd.admin.validate.LogActionSearchValidate;
import com.mdd.admin.vo.LogActionListedVo;
import com.mdd.admin.vo.LogActionDetailVo;
import com.mdd.common.core.PageResult;

import java.text.ParseException;

/**
 * 操作日志服务接口类
 * @author LikeAdmin
 */
public interface ILogActionService {

    /**
     * 操作日志列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<LogActionListedVo>
     */
    PageResult<LogActionListedVo> list(PageValidate pageValidate, LogActionSearchValidate searchValidate) throws ParseException;

    /**
     * 操作日志详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return LogActionDetailVo
     */
    LogActionDetailVo detail(Integer id);

    /**
     * 操作日志新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(LogActionCreateValidate createValidate);

    /**
     * 操作日志编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(LogActionUpdateValidate updateValidate);

    /**
     * 操作日志删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Integer id);

}
